package com.yidiandao.business.data.response;

import com.google.gson.annotations.SerializedName;
import com.yidiandao.business.data.bean.Goods;
import com.yidiandao.business.data.net.BaseResponse;

import java.util.List;

/**
 * 确认订单商品清单
 */
public class QueryConfirmOrderGoodsResponse extends BaseResponse {

    @SerializedName("data")
    private Data data;

    public Data getData() {
        return data;
    }

    public void setData(Data data) {
        this.data = data;
    }

    public static class Data {

        @SerializedName("cart_goods_list")
        private List<Inventory> inventory;

        @SerializedName("goods_total_number")
        private int goodsTotalNumber;

        public int getGoodsTotalNumber() {
            return goodsTotalNumber;
        }

        public void setGoodsTotalNumber(int goodsTotalNumber) {
            this.goodsTotalNumber = goodsTotalNumber;
        }

        public List<Inventory> getInventory() {
            return inventory;
        }

        public void setInventory(List<Inventory> inventory) {
            this.inventory = inventory;
        }
    }

    public static class Inventory {

        @SerializedName("goods_list")
        private List<Goods> goodsList;

        @SerializedName("favourable_list")
        private List<Favourable> favourableList;

        public List<Goods> getGoodsList() {
            return goodsList;
        }

        public void setGoodsList(List<Goods> goodsList) {
            this.goodsList = goodsList;
        }

        public List<Favourable> getFavourableList() {
            return favourableList;
        }

        public void setFavourableList(List<Favourable> favourableList) {
            this.favourableList = favourableList;
        }
    }

    public static class Favourable {

        @SerializedName("title")
        private String title;

        @SerializedName("content")
        private String content;

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }
    }
}
